package net.lunjin.service.impl;

import java.util.List;

import net.lunjin.bean.NewsRemarkTemplate;
import net.lunjin.dao.NewsRemarkTemplateDao;
import net.lunjin.service.NewsRemarkTemplateService;

import org.springframework.beans.factory.annotation.Autowired;

public class NewsRemarkTemplateServiceImpl implements NewsRemarkTemplateService {

	@Autowired
	private NewsRemarkTemplateDao newsRemarkTemplateDao;
	
	@Override
	public List<NewsRemarkTemplate> getAll() throws Exception {
		return newsRemarkTemplateDao.findAll();
	}

	@Override
	public boolean insert(NewsRemarkTemplate newsRemarkTemplate) throws Exception {
		return newsRemarkTemplateDao.insert(newsRemarkTemplate);
	}

	@Override
	public boolean delete(NewsRemarkTemplate newsRemarkTemplate) throws Exception {
		return newsRemarkTemplateDao.delete(newsRemarkTemplate);
	}

	
	
}
